package cn.exrick.xboot.enterpriseUser.controllerImp

import cn.exrick.xboot.base.login.LoginDto
import cn.exrick.xboot.base.login.LoginService
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.enterpriseUser.controller.IEnterpriseUserController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class AppLoginController : IEnterpriseUserController.Login{

    @Autowired
    private lateinit var loginService: LoginService

    override fun appLogin(loginDto: LoginDto): Result<Any?>? {

        return loginService.appLogin(loginDto)
    }

    override fun appRegister(loginDto: LoginDto): Result<Any?>? {

        return loginService.appRegister(loginDto)
    }

    override fun appForgetPassword(loginDto: LoginDto): Result<Any?>? {

        return loginService.appForgetPassword(loginDto)
    }


}